import Vue from 'vue'
import VueRouter from 'vue-router'
import Attention from '@/views-day10/Attention.vue'
import Dvd from '@/views-day10/Dvd.vue'
import FindMusic from '@/views-day10/FindMusic.vue'
import MusicPeople from '@/views-day10/MusicPeople.vue'
import MyMusic from '@/views-day10/MyMusic.vue'
import Radio from '@/views-day10/Radio.vue'
import RankingList from '@/views-day10/RankingList.vue'
import Recommend from '@/views-day10/Recommend.vue'
import Shop from '@/views-day10/Shop.vue'
import Singer from '@/views-day10/Singer.vue'
import SongList from '@/views-day10/SongList.vue'
import Layout from '@/views-day10/Layout.vue'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/',
      component: Layout,
      redirect: '/FindMusic/Recommend',
      children: [
        {
          path: 'FindMusic',
          component: FindMusic,
          children: [
            {
              path: 'Recommend',
              component: Recommend,
            },
            {
              path: 'RankingList',
              component: RankingList,
            },
            {
              path: 'SongList',
              component: SongList,
            },
            {
              path: 'Radio',
              component: Radio,
            },
            {
              path: 'Singer',
              component: Singer,
            },
            {
              path: 'Dvd',
              component: Dvd,
            },
          ],
        },
        {
          path: 'MyMusic',
          component: MyMusic,
        },
        {
          path: 'Attention',
          component: Attention,
        },
        {
          path: 'Shop',
          component: Shop,
        },
        {
          path: 'MusicPeople',
          component: MusicPeople,
        },
      ],
    },
  ],
})

export default router
